package vista;

import javax.swing.table.JTableHeader;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.Font;
import javax.swing.BorderFactory;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import controlador.ControladorProducto;

@SuppressWarnings("serial")
public class VistaProducto extends JFrame {

	private JPanel jContentPane = null;
	private JPanel jPanel = null;
	private JPanel jPanel1 = null;
	private JLabel jLabel = null;
	private JTextField jTextField = null;
	private JPanel jPanel2 = null;
	private JLabel jLabel1 = null;
	private JTextField jTextField1 = null;
	private JLabel jLabel2 = null;
	private JTextField jTextField2 = null;
	private JLabel jLabel3 = null;
	private JTextField jTextField3 = null;
	private JLabel jLabel4 = null;
	private JTextField jTextField4 = null;
	private JLabel jLabel5 = null;
	private JTextField jTextField5 = null;
	private JLabel jLabel6 = null;
	private JTextField jTextField6 = null;
	private JTextField txtPrecio;
	private JLabel jLabel16;
	private JPanel jPanel8;
	private JTextField txtCosto;
	private JButton btnFila;
	private JTextField txtEFila;
	@SuppressWarnings("unused")
	private JTextField txtfila;
	private JTable tabla;
	private JScrollPane jScrollPane;
	private JTextField txtcantidad;
	private JButton btnIncluir;
	private JLabel jLabel18;
	private JComboBox txtIngredientes;
	private JLabel jLabel15;
	private JComboBox txtCategoria;
	private JLabel jLabel14;
	private JLabel jLabel13;
	private JLabel jLabel7 = null;
	private JLabel jLabel8 = null;
	private JLabel jLabel9 = null;
	private JPanel jPanel3 = null;
	private JPanel jPanel4 = null;
	private JPanel jPanel5 = null;
	private JLabel jLabel11 = null;
	private JTextField txtCodigo = null;
	private JLabel jLabel12 = null;
	private JTextField txtDescripcion = null;
	private JButton btnBuscar = null;
	private JPanel jPanel6 = null;
	private JLabel jLabel10 = null;
	private JPanel jPanel7 = null;
	private JPanel jPanel9 = null;
	private JButton btnSalir = null;
	private JButton btnCancelar = null;
	private JButton btnEliminar = null;
	private JButton btnModificar = null;
	private JButton btnGuardar = null;
	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	
	
	
	private JPanel getJPanel() {
		if (jPanel == null) {
			jPanel = new JPanel();
			jPanel.setLayout(null);
			jPanel.setBackground(new java.awt.Color(0,102,102));
			jPanel.setBounds(new java.awt.Rectangle(0,0,708,1));
			jPanel.add(getJPanel1(), null);
		}
		return jPanel;
	}

	
	private JPanel getJPanel1() {
		if (jPanel1 == null) {
			jLabel = new JLabel();
			jLabel.setBounds(new java.awt.Rectangle(38,320,76,19));
			jLabel.setText("ID Empleado");
			jPanel1 = new JPanel();
			jPanel1.setLayout(null);
			jPanel1.setBounds(new java.awt.Rectangle(16,13,637,316));
			jPanel1.setBackground(java.awt.Color.white);
			jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null), "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
			jPanel1.add(jLabel, null);
			jPanel1.add(getJTextField(), null);
			jPanel1.add(getJPanel2(), null);
		}
		return jPanel1;
	}

	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
			jTextField.setBounds(new java.awt.Rectangle(120,316,105,19));
		}
		return jTextField;
	}

	private JPanel getJPanel2() {
		if (jPanel2 == null) {
			jLabel9 = new JLabel();
			jLabel9.setBounds(new java.awt.Rectangle(24,254,59,16));
			jLabel9.setText("Telefono 2");
			jLabel8 = new JLabel();
			jLabel8.setBounds(new java.awt.Rectangle(24,229,59,16));
			jLabel8.setText("Telefono 2");
			jLabel7 = new JLabel();
			jLabel7.setBounds(new java.awt.Rectangle(22,202,59,16));
			jLabel7.setText("Telefono 2");
			jLabel6 = new JLabel();
			jLabel6.setBounds(new java.awt.Rectangle(22,174,59,16));
			jLabel6.setText("Telefono 2");
			jLabel5 = new JLabel();
			jLabel5.setBounds(new java.awt.Rectangle(20,149,59,16));
			jLabel5.setText("Telefono 1");
			jLabel4 = new JLabel();
			jLabel4.setBounds(new java.awt.Rectangle(21,123,45,16));
			jLabel4.setText("Nombre");
			jLabel3 = new JLabel();
			jLabel3.setBounds(new java.awt.Rectangle(21,97,45,16));
			jLabel3.setText("Apellido");
			jLabel2 = new JLabel();
			jLabel2.setBounds(new java.awt.Rectangle(22,70,45,16));
			jLabel2.setText("Nombre");
			jLabel1 = new JLabel();
			jLabel1.setBounds(new java.awt.Rectangle(22,41,39,16));
			jLabel1.setText("Cedula");
			jPanel2 = new JPanel();
			jPanel2.setLayout(null);
			jPanel2.setBounds(new java.awt.Rectangle(24,12,620,298));
			jPanel2.setBackground(java.awt.Color.white);
			jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null), "Datos personales", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
			jPanel2.add(jLabel1, null);
			jPanel2.add(getJTextField1(), null);
			jPanel2.add(jLabel2, null);
			jPanel2.add(getJTextField2(), null);
			jPanel2.add(jLabel3, null);
			jPanel2.add(getJTextField3(), null);
			jPanel2.add(jLabel4, null);
			jPanel2.add(getJTextField4(), null);
			jPanel2.add(jLabel5, null);
			jPanel2.add(getJTextField5(), null);
			jPanel2.add(jLabel6, null);
			jPanel2.add(getJTextField6(), null);
			jPanel2.add(jLabel7, null);
			jPanel2.add(jLabel8, null);
			jPanel2.add(jLabel9, null);
		}
		return jPanel2;
	}

	private JTextField getJTextField1() {
		if (jTextField1 == null) {
			jTextField1 = new JTextField();
			jTextField1.setBounds(new java.awt.Rectangle(97,39,108,20));
		}
		return jTextField1;
	}

	
	private JTextField getJTextField2() {
		if (jTextField2 == null) {
			jTextField2 = new JTextField();
			jTextField2.setBounds(new java.awt.Rectangle(96,67,212,20));
		}
		return jTextField2;
	}

	
	private JTextField getJTextField3() {
		if (jTextField3 == null) {
			jTextField3 = new JTextField();
			jTextField3.setBounds(new java.awt.Rectangle(97,96,211,20));
		}
		return jTextField3;
	}

	
	private JTextField getJTextField4() {
		if (jTextField4 == null) {
			jTextField4 = new JTextField();
			jTextField4.setBounds(new java.awt.Rectangle(97,126,210,20));
		}
		return jTextField4;
	}

	
	private JTextField getJTextField5() {
		if (jTextField5 == null) {
			jTextField5 = new JTextField();
			jTextField5.setBounds(new java.awt.Rectangle(97,156,210,20));
		}
		return jTextField5;
	}

	
	private JTextField getJTextField6() {
		if (jTextField6 == null) {
			jTextField6 = new JTextField();
			jTextField6.setBounds(new java.awt.Rectangle(98,187,208,20));
		}
		return jTextField6;
	}

	
	private JPanel getJPanel3() {
		if (jPanel3 == null) {
			jPanel3 = new JPanel();
			jPanel3.setLayout(null);
			jPanel3.setBounds(0, -3, 632, 482);
			jPanel3.setBackground(new java.awt.Color(255,255,255));
			jPanel3.add(getJPanel4(), null);
			jPanel3.add(getJPanel6(), null);
		}
		return jPanel3;
	}

	
	private JPanel getJPanel4() {
		if (jPanel4 == null) {
			jPanel4 = new JPanel();
			jPanel4.setLayout(null);
			jPanel4.setBounds(0, 43, 632, 415);
			jPanel4.setBackground(new java.awt.Color(49,120,189));
			jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.black), " ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.black));
			jPanel4.add(getJPanel5(), null);
			jPanel4.add(getJPanel8());
			jPanel4.add(getJScrollPane());

		}
		return jPanel4;
	}

	private JPanel getJPanel5() {
		if (jPanel5 == null) {
			jLabel12 = new JLabel();
			jLabel12.setBounds(31, 59, 102, 16);
			jLabel12.setFont(new java.awt.Font("Bookman Old Style", java.awt.Font.BOLD, 12));
			jLabel12.setText("DESCRIPCION");
			jLabel11 = new JLabel();
			jLabel11.setBounds(31, 26, 61, 16);
			jLabel11.setFont(new java.awt.Font("Bookman Old Style", java.awt.Font.BOLD, 12));
			jLabel11.setText("CODIGO");
			jPanel5 = new JPanel();
			jPanel5.setLayout(null);
			jPanel5.setBounds(15, 18, 597, 163);
			jPanel5.setBackground(new java.awt.Color(255,255,255));
			jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), new java.awt.Color(51,51,51)), ".", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), new java.awt.Color(51,51,51)));
			jPanel5.add(jLabel11, null);
			jPanel5.add(getTxtCodigo(), null);
			jPanel5.add(jLabel12, null);
			jPanel5.add(getTxtDescripcion(), null);
			jPanel5.add(getBtnBuscar(), null);
			jPanel5.add(getJLabel13());
			jPanel5.add(getJLabel14());
			jPanel5.add(getTxtCategoria());
			jPanel5.add(getJLabel15());
			jPanel5.add(getTxtPrecio());
			jPanel5.add(getTxtCosto());
		}
		return jPanel5;
	}

	
	public JTextField getTxtCodigo() {
		if (txtCodigo == null) {
			txtCodigo = new JTextField();
			Utilidades.Limitador lim = new Utilidades.Limitador(5);
			txtCodigo.setDocument(lim);
			txtCodigo.setLocation(new java.awt.Point(74,25));
			txtCodigo.setBounds(145, 24, 95, 22);
		}
		return txtCodigo;
	}

	
	public JTextField getTxtDescripcion() {
		if (txtDescripcion == null) {
			txtDescripcion = new JTextField();
			txtDescripcion.setLocation(new java.awt.Point(393,24));
			txtDescripcion.setBounds(145, 57, 383, 22);
		}
		return txtDescripcion;
	}

	
	public JButton getBtnBuscar() {
		if (btnBuscar == null) {
			btnBuscar = new JButton();
			btnBuscar.setText("Buscar");
			//btnBuscar.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Buscar.png")));
			btnBuscar.setLocation(new java.awt.Point(165,20));
			btnBuscar.setBounds(246, 21, 75, 27);
		}
		return btnBuscar;
	}

	private JPanel getJPanel6() {
		if (jPanel6 == null) {
			GridBagConstraints gridBagConstraints = new GridBagConstraints();
			gridBagConstraints.insets = new java.awt.Insets(6,96,13,126);
			gridBagConstraints.gridy = 0;
			gridBagConstraints.ipadx = 2;
			gridBagConstraints.ipady = -6;
			gridBagConstraints.gridx = 0;
			jLabel10 = new JLabel();
			jLabel10.setFont(new Font("Candara", Font.BOLD | Font.ITALIC, 18));
			jLabel10.setForeground(Color.white);
			jLabel10.setText("REGISTRO DE PRODUCTOS");
			jLabel10.setBackground(new Color(0, 153, 153));
			jPanel6 = new JPanel();
			jPanel6.setLayout(new GridBagLayout());
			jPanel6.setBounds(-2, -2, 634, 45);
			jPanel6.setBackground(Color.black);
			jPanel6.setBorder(BorderFactory.createLineBorder(Color.black, 5));
			jPanel6.add(jLabel10, gridBagConstraints);
		}
		return jPanel6;
	}

	
	private JPanel getJPanel7() {
		if (jPanel7 == null) {
			jPanel7 = new JPanel();
			jPanel7.setLayout(null);
			jPanel7.setBounds(5, 479, 627, 60);
			jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.black));
			jPanel7.setBackground(new java.awt.Color(49,120,189));
			jPanel7.add(getJPanel9(), null);
		}
		return jPanel7;
	}

	
	private JPanel getJPanel9() {
		if (jPanel9 == null) {
			jPanel9 = new JPanel();
			jPanel9.setLayout(null);
			jPanel9.setBounds(22, 9, 582, 42);
			jPanel9.setBackground(new java.awt.Color(255,255,255));
			jPanel9.add(getBtnSalir(), null);
			jPanel9.add(getBtnCancelar(), null);
			jPanel9.add(getBtnEliminar(), null);
			jPanel9.add(getBtnModificar(), null);
			jPanel9.add(getBtnGuardar(), null);
		}
		return jPanel9;
	}

	
	public JButton getBtnSalir() {
		if (btnSalir == null) {
			btnSalir = new JButton();
			btnSalir.setText("Salir");
			btnSalir.setSize(new java.awt.Dimension(115,27));
			//btnSalir.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Salir.png")));
			btnSalir.setLocation(new java.awt.Point(461,7));
		}
		return btnSalir;
	}

	public JButton getBtnCancelar() {
		if (btnCancelar == null) {
			btnCancelar = new JButton();
			btnCancelar.setText("Limpiar");
			btnCancelar.setLocation(new java.awt.Point(347,7));
			//btnCancelar.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Limpiar.png")));
			btnCancelar.setSize(new java.awt.Dimension(115,27));
		}
		return btnCancelar;
	}

	public JButton getBtnEliminar() {
		if (btnEliminar == null) {
			btnEliminar = new JButton();
			btnEliminar.setText("Eliminar");
			btnEliminar.setSize(new java.awt.Dimension(115,27));
//			btnEliminar.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Eliminar.png")));
			btnEliminar.setLocation(new java.awt.Point(233,7));
		}
		return btnEliminar;
	}
	public JButton getBtnModificar() {
		if (btnModificar == null) {
			btnModificar = new JButton();
			btnModificar.setText("Modificar");
			btnModificar.setLocation(new java.awt.Point(120,7));
//			btnModificar.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Modificar.png")));
			btnModificar.setSize(new java.awt.Dimension(115,27));
		}
		return btnModificar;
	}

	public JButton getBtnGuardar() {
		if (btnGuardar == null) {
			btnGuardar = new JButton();
			btnGuardar.setText("Guardar");
			btnGuardar.setSize(new java.awt.Dimension(115,27));
	//		btnGuardar.setIcon(new ImageIcon(getClass().getResource("/imagenes/btn_Guardar1.png")));
			btnGuardar.setLocation(new java.awt.Point(6,7));
		}
		return btnGuardar;
	}

	public VistaProducto() {
		super();
		initialize();
		registrarControlador();
	}


	@SuppressWarnings("deprecation")
	private void initialize() {
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setSize(689, 607);
		this.setContentPane(getJContentPane());
		this.setTitle("Productos <<La Guapa>>");
		this.show();
		this.setLocationRelativeTo(null);
		this.setVisible(true);
	}


	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.setPreferredSize(new java.awt.Dimension(647, 569));
			jContentPane.add(getJPanel(), null);
			jContentPane.add(getJPanel3(), null);
			jContentPane.add(getJPanel7());
		}
		return jContentPane;
	}
	

	private JLabel getJLabel13() {
		if(jLabel13 == null) {
			jLabel13 = new JLabel();
			jLabel13.setText("PRECIO");
			jLabel13.setFont(new java.awt.Font("Bookman Old Style",java.awt.Font.BOLD,12));
			jLabel13.setBounds(31, 93, 102, 16);
		}
		return jLabel13;
	}

	private JLabel getJLabel14() {
		if(jLabel14 == null) {
			jLabel14 = new JLabel();
			jLabel14.setText("COSTO");
			jLabel14.setFont(new java.awt.Font("Bookman Old Style",java.awt.Font.BOLD,12));
			jLabel14.setBounds(317, 93, 68, 16);
		}
		return jLabel14;
	}
	
	public JComboBox getTxtCategoria() {
		if(txtCategoria == null) {
			/*ComboBoxModel txtCategoriaModel = 
				new DefaultComboBoxModel(
						new String[] { "Item One", "Item Two" });*/
			txtCategoria = new JComboBox();
			//txtCategoria.setModel(txtCategoriaModel);
			txtCategoria.setBounds(145, 125, 148, 21);
		}
		return txtCategoria;
	}
	
	private JLabel getJLabel15() {
		if(jLabel15 == null) {
			jLabel15 = new JLabel();
			jLabel15.setText("CATEGORIA");
			jLabel15.setFont(new java.awt.Font("Bookman Old Style",java.awt.Font.BOLD,12));
			jLabel15.setBounds(31, 127, 102, 16);
		}
		return jLabel15;
	}
	
	public JTextField getTxtPrecio() {
		if(txtPrecio == null) {
			txtPrecio = new JTextField();
			txtPrecio.setBounds(145, 91, 148, 21);
		}
		return txtPrecio;
	}
	
	public JTextField getTxtCosto() {
		if(txtCosto == null) {
			txtCosto = new JTextField();
			txtCosto.setBounds(378, 91, 147, 21);
		}
		return txtCosto;
	}
	
	private JPanel getJPanel8() {
		if(jPanel8 == null) {
			jPanel8 = new JPanel();
			jPanel8.setBackground(new java.awt.Color(255,255,255));
			jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(null,"",javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,javax.swing.border.TitledBorder.DEFAULT_POSITION,new java.awt.Font("Dialog",java.awt.Font.BOLD,12),new java.awt.Color(51,51,51)),".",javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,javax.swing.border.TitledBorder.DEFAULT_POSITION,new java.awt.Font("Dialog",java.awt.Font.BOLD,12),new java.awt.Color(51,51,51)));
			jPanel8.setLayout(null);
			jPanel8.setBounds(14, 193, 597, 70);
			jPanel8.add(getJLabel16());
			jPanel8.add(getTxtIngredientes());
			jPanel8.add(getJLabel18());
			jPanel8.add(getBtnIncluir());
			jPanel8.add(getTxtcantidad());
			jPanel8.add(getTxtEFila());
			jPanel8.add(getBtnFila());
			//jPanel8.add(getTxtfila());

		}
		return jPanel8;
	}
	
	private JLabel getJLabel16() {
		if(jLabel16 == null) {
			jLabel16 = new JLabel();
			jLabel16.setText("Ingredientes");
			jLabel16.setFont(new java.awt.Font("Bookman Old Style",java.awt.Font.BOLD,12));
			jLabel16.setBounds(27, 25, 83, 19);
		}
		return jLabel16;
	}

	public JComboBox getTxtIngredientes() {
		if(txtIngredientes == null) {
			txtIngredientes = new JComboBox();
			txtIngredientes.setBounds(128, 24, 129, 24);
		}
		return txtIngredientes;
	}

	private JLabel getJLabel18() {
		if(jLabel18 == null) {
			jLabel18 = new JLabel();
			jLabel18.setText("Cantidad");
			jLabel18.setBounds(276, 28, 48, 16);
		}
		return jLabel18;
	}
	
	public JButton getBtnIncluir() {
		if(btnIncluir == null) {
			btnIncluir = new JButton();
			btnIncluir.setText("Incluir");
			btnIncluir.setBounds(391, 24, 47, 23);
		}
		return btnIncluir;
	}
	
		
	
	public JTextField getTxtcantidad() {
		if(txtcantidad == null) {
			txtcantidad = new JTextField();
			txtcantidad.setBounds(329, 25, 35, 23);
		}
		return txtcantidad;
	}
	
	private JScrollPane getJScrollPane() {
		if(jScrollPane == null) {
			jScrollPane = new JScrollPane();
			jScrollPane.setBounds(14, 282, 597, 117);
			jScrollPane.setViewportView(getTabla());
		}
		return jScrollPane;
	}
	
	@SuppressWarnings("static-access")
	public JTable getTabla() {
		if (tabla == null) {
			
			String[] encabezado = {"Producto","Cod. Ing.","Ingrediente","Cantidad"};
			
			String[][] data = {{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""},{"","","",""}};
			
			
			tabla = new JTable(data,encabezado);
			
			
			JTableHeader anHeader = tabla.getTableHeader();
			anHeader.setForeground(new Color(0).WHITE);
			anHeader.setBackground(new Color(0,64,128));
			anHeader.setFont(new Font("Arial",Font.BOLD,12));
			tabla.setFont(new Font("Arial",Font.BOLD,12));
			tabla.setShowGrid(true);
			
		
		}
		return tabla;
	}



	public void registrarControlador(){
		
		ControladorProducto controladorProducto = new ControladorProducto(this);
		btnBuscar.addActionListener(controladorProducto);
		btnGuardar.addActionListener(controladorProducto);
		btnModificar.addActionListener(controladorProducto);
		btnCancelar.addActionListener(controladorProducto);
		btnEliminar.addActionListener(controladorProducto);
		btnSalir.addActionListener(controladorProducto);
		btnIncluir.addActionListener(controladorProducto);
		btnFila.addActionListener(controladorProducto);
		//addWindowsListener()
		this.addWindowListener(controladorProducto);
	}

	public JTextField getTxtEFila() {
		if(txtEFila == null) {
			txtEFila = new JTextField();
			txtEFila.setBounds(451, 21, 38, 23);
		}
		return txtEFila;
	}
	
	public JButton getBtnFila() {
		if(btnFila == null) {
			btnFila = new JButton();
			btnFila.setText("Elim Reng.");
			btnFila.setBounds(512, 21, 70, 23);
		}
		return btnFila;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
